package co.fitstart.market.service.impl;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

import com.demo2do.core.persistence.annotation.Dynamic;

import co.fitstart.entity.market.ParticipationQrcode;
import co.fitstart.entity.user.User;
import co.fitstart.market.dao.ParticipationDao;
import co.fitstart.market.service.ParticipationService;

@Service("participationService")
public class ParticipationServiceImpl implements ParticipationService{
    
    @Value("#{ctx['system.host']}")
    private String path;
    
    @Dynamic
    private ParticipationDao participationDao;
    
    /*
     * (non-Javadoc)
     * @see co.fitstart.market.service.ParticipationService#loadParticipationQrcode(boolean, co.fitstart.entity.user.User)
     */
    public ParticipationQrcode loadParticipationQrcode(boolean signin, User user) {
        return participationDao.loadParticipationQrcode(signin, user);
    }
    
}
